<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>编辑留言</title>
<!-- 这个是视图文件 -->
<link href="css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript"> 

</script>

</head>

<body>

<div id="top">
    <h1>编辑留言</h1>
</div>
<div id="mian_out">
   
   
    <div id="right" style="right: 600px">
      <h2>修改留言</h2>
      <form action="bbssave.php?id=<?php echo $one['id'];?>" method="post">
        <p class="one">
            昵称:<input class="name" name="username" type="text" required="required" value="<?php echo $one['username'];?>" />
        <input type="radio" name="sex" value="男" 
               <?php
               if ($one['sex']=='男') echo'checked="checked"';
               ?>
               />男侠
        <input type="radio" name="sex" value="女" 
                <?php
               if ($one['sex']=='女') echo'checked="checked"';
               ?>
               />女侠
        </p>
        <p><textarea name="message" required="required" > <?php echo $one['message'];?></textarea></p>
        <p class="tow">
          <input type="radio" name="imgurl" value="images/1.jpg" 
                   <?php
               if ($one['imgurl']=='images/1.jpg') echo'checked="checked"';
               ?>
                 />
          <img src=" images/1.jpg" alt="" />
          <input type="radio" name="imgurl" value="images/2.jpg" 
                <?php
               if ($one['imgurl']=='images/2.jpg') echo'checked="checked"';
               ?>  
                 />
          <img src=" images/2.jpg" alt="" />
          <input type="radio" name="imgurl" value="images/3.jpg"
                  <?php
               if ($one['imgurl']=='images/3.jpg') echo'checked="checked"';
               ?>
                 />
          <img src=" images/3.jpg" alt="" />
          <input type="radio" name="imgurl" value="images/4.jpg"
                  <?php
               if ($one['imgurl']=='images/4.jpg') echo'checked="checked"';
               ?>
                 />
          <img src=" images/4.jpg" alt="" />
        </p>
  
       <p class="thr"><input class="btn" type="submit" value="保存" /></p>
   
        
      </form>
      <div class="close"></div>
</div>
   
</div>

    
    
    
<div id="bottom_out">
    <div id="bottom">
      <form action="bbsadd.php" method="post">
        <p class="one">
        昵称:<input class="name" name="username" type="text" placeholder="大爷你的名字" required="required" />
        <br/><br/>
        <input type="radio" name="sex" value="男" checked="checked" />男侠
        <input type="radio" name="sex" value="女" />女侠
        </p>
        <p><textarea name="message" placeholder="这个人很懒,什么都没有写" required="required"></textarea></p>
        <p class="tow">
          <input type="radio" name="imgurl" value="images/1.jpg" checked="checked" /><img src=" images/1.jpg" alt="" />
          <input type="radio" name="imgurl" value="images/2.jpg" /><img src=" images/2.jpg" alt="" />
          <input type="radio" name="imgurl" value="images/3.jpg" /><img src=" images/3.jpg" alt="" />
          <input type="radio" name="imgurl" value="images/4.jpg" /><img src=" images/4.jpg" alt="" />
        </p>
        <p class="thr"><input class="btn" type="submit" value="保存" /></p>
      </form>
      <div class="close"></div>
    </div>
</div>

</body>
</html>

